using System;
using System.Collections.Generic;
using System.Text;

using Sandia.MVCFramework.Data;
using Sandia.MVCFramework.DataAccessor;
using Sandia.MVCFramework.Request;

using Sandia.MVCFramework.TestPlugin.Request;

namespace Sandia.MVCFramework.TestPlugin.DataAccessor
{
    /// <summary>
    /// 
    /// </summary>
    public class DummyDataAccessor: AbstractStandardDataAccessor
    {
        private bool started = false;

        public bool Started
        {
            get
            {
                return this.started;
            }
        }

        #region IDataAccessor Members

        /// <summary>
        /// 
        /// </summary>
        public override IList<Type> DesiredRequests
        {
            get
            {
                // Add subscriptions
                List<Type> desiredRequests = new List<Type>();
                desiredRequests.Add(typeof(BRequest));
                desiredRequests.Add(typeof(DRequest));
                return desiredRequests;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="request"></param>
        protected override void processRequest(IRequest request)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion

        #region IDisposable Members

        /// <summary>
        /// 
        /// </summary>
        public override void Dispose()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion

        /// <summary>
        /// 
        /// </summary>
        public override void Start()
        {
            this.started = true;
        }
    }
}
